<template>
    <view :style="themeColor">
        <view class="page" >
    <view class="flex flex-direction flex-wrap align-stretch justify-center benben-position-layout flex logOutSubmit_flex_0"    :style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
            <view   class='flex flex-wrap align-stretch justify-between logOutSubmit_fd0_0'      >
            <view   class='flex flex-wrap align-center logOutSubmit_fd0_0_c0'   @tap.stop="handleJumpDiy" data-type="back" data-url="1"   >
        <text class='fu-iconfont2  logOutSubmit_fd0_0_c0_c0'  >&#xe794;</text>
</view>
    <view   class='flex flex-wrap align-center'      >
        <text class='logOutSubmit_fd0_0_c1_c0'  >注销账号</text>
</view>
    <view   class='flex align-center justify-end logOutSubmit_fd0_0_c2'      >
        </view>
</view>

        </view>
<view :style="{height: (88+StatusBarRpx)+'rpx'}"  ></view>
<!---账号提交成功flex布局开始-->
 <view class="flex flex-direction align-stretch benben-flex-layout logOutSubmit_flex_1"    >
            <view   class='flex flex-direction align-center'    v-if= " type=='1'"  >
        <image class='logOutSubmit_fd1_0_c0'  mode="aspectFit"  :src='STATIC_URL+"20.png"'></image>
<text class='logOutSubmit_fd1_0_c1'  >注销申请提交成功！</text>
<text class='logOutSubmit_fd1_0_c2'  >我们工作人员将会对您的账号进行审核，审核通过后， 账号将会被注销，请知悉</text>
<button class='logOutSubmit_fd1_0_c3'  @tap.stop="logOutFunc()"  >退出登录</button>
</view>
    <view   class='flex flex-direction flex-wrap align-center'    v-if= " type!='1' && dataDetails.status=='1'"  >
        <image class='logOutSubmit_fd1_0_c0'  mode="aspectFit"  :src='STATIC_URL+"21.png"'></image>
<text class='logOutSubmit_fd1_1_c1'  >处理中</text>
    <view   class='flex flex-wrap align-center'      >
        <text class='logOutSubmit_fd1_1_c2_c0'  >注销理由：</text>
<text class='logOutSubmit_fd1_1_c2_c0'  >{{dataDetails.cancel_reason}}</text>
</view>
</view>
    <view   class='flex flex-direction flex-wrap align-center'    v-if= " type!='1' && dataDetails.status=='3'"  >
        <image class='logOutSubmit_fd1_0_c0'  mode="aspectFit"  :src='STATIC_URL+"22.png"'></image>
<text class='logOutSubmit_fd1_0_c1'  >注销驳回</text>
<button class='logOutSubmit_fd1_0_c3'  @tap.stop="handleJumpDiy" data-type="redirectTo" :data-url="`/pages/xtsz/CancelAccount/CancelAccount`"  >重新申请</button>
</view>
</view>
        
<!---账号提交成功flex布局结束-->
    
    
        </view>
    </view>
</template>
<script>
    import {validate} from '@/common/utils/validate.js'
    
    export default {
        components:{},
        
        
        data(){
			return {"dataDetails":{"aid":"","user_nickname":"","user_avatar":"","user_mobile":"","cancel_type":"","create_time":"","status":"","cancel_reason":"","cancel_type_text":""},"type":"","status":"1"};
		},
		computed:{
            themeColor() {
              return this.$store.getters.themeColor
            },
            
		},
		watch:{},
		onLoad(options){
            let {type,status}=options
if (type !== undefined) this.type = type
if (status !== undefined) this.status = status
this.getDetailFunc()
		},
        onUnload() {
                
        },
		onReady(){
            
		},
		onShow(){
            
		},
		onHide(){
            
		},
		onResize(){
            
		},
		onPullDownRefresh(){
            
		},
		onReachBottom(e){
            
		},
		onPageScroll(e){
            
		},
		methods:{
                            //获取注销详情
                async getDetailFunc(){
                        //请求方法
    //数据验证
    
  let datadataDetails = await this.$api.get(global.apiUrls.post637c4deb97aa9, {
    sort_type:'desc'
  });
  
  if (datadataDetails.data.code != 1) {
    this.$message.info(datadataDetails.data.msg);
    return
  } 
  let infodataDetails = datadataDetails.data;
  this.dataDetails = infodataDetails.data
  
                },
                //退出登录
                 logOutFunc(){
                                    this.$store.commit('logout')
                this.toLoginDiy();
                }
		}
    };
</script> 
<style lang="scss" scoped>
           .page{
            width: 100vw;
            overflow-x: hidden;
            min-height: calc(100vh - var(--window-bottom));
            background:#fff;background-size: 100% auto;
        }
    .logOutSubmit_flex_0{
        border-bottom:1px solid #eee;background:#fff;width:750rpx;height:88rpx;overflow:hidden;z-index:10;top:0rpx;background-size:100% auto !important;
    }
    .logOutSubmit_fd0_0_c2{
        padding:0rpx 0rpx 0rpx 0rpx;width:100rpx;
    }
    .logOutSubmit_fd0_0_c1_c0{
        font-size:36rpx;font-weight:500;color:#333333;line-height:50rpx;
    }
    .logOutSubmit_fd0_0_c0_c0{
        font-size:36rpx;font-weight:400;color:#333;
    }
    .logOutSubmit_fd0_0_c0{
        width:100rpx;
    }
    .logOutSubmit_fd0_0{
        padding:0rpx 32rpx 0rpx 32rpx;line-height:88rpx;
    }
    .logOutSubmit_flex_1{
        padding:88rpx 95rpx 0rpx 95rpx;
    }
    .logOutSubmit_fd1_1_c2_c0{
        line-height:40rpx;font-size:28rpx;font-weight:400;color:var(--benbenFontColor2);
    }
    .logOutSubmit_fd1_1_c1{
        line-height:105rpx;font-size:32rpx;font-weight:700;color:var(--benbenFontColor0);
    }
    .logOutSubmit_fd1_0_c3{
        background:var(--benbenbgColor2);border-radius:36rpx 36rpx 36rpx 36rpx;font-size:28rpx;color:var(--benbenFontColor3);width:320rpx;height:72rpx;line-height:72rpx;margin:104rpx 0rpx 0rpx 0rpx;
    }
    .logOutSubmit_fd1_0_c2{
        line-height:40rpx;font-size:28rpx;font-weight:400;color:var(--benbenFontColor2);text-align:center;
    }
    .logOutSubmit_fd1_0_c1{
        font-size:32rpx;font-weight:700;color:var(--benbenFontColor0);margin:32rpx 0rpx 24rpx 0rpx;
    }
    .logOutSubmit_fd1_0_c0{
        width:250rpx;height:180rpx;margin:0rpx 0rpx 10rpx 0rpx;
    }
</style>